package com.myosw.pojo;

import java.sql.Timestamp;
import java.util.Date;

import org.ocpsoft.prettytime.PrettyTime;

/**
 *  过滤设置
 * @author 陈磊
 *
 */
public class Filter extends POJO 
{
		/**
	 * 
	 */
	protected static final long serialVersionUID = 1L;
		protected String keyword; //过滤关键字
		protected int count;//总数
		protected int newcount;//新添加数
		protected Timestamp updatetime;//更新时间
		protected Timestamp createtime= new Timestamp(new Date().getTime());//创建时间
		public String getKeyword() {
			return keyword;
		}
		public void setKeyword(String keyword) {
			this.keyword = keyword;
		}
		public int getCount() {
			return count;
		}
		public void setCount(int count) {
			this.count = count;
		}
		public int getNewcount() {
			return newcount;
		}
		public void setNewcount(int newcount) {
			this.newcount = newcount;
		}
		public Timestamp getUpdatetime() {
			return updatetime;
		}
		public void setUpdatetime(Timestamp updatetime) {
			this.updatetime = updatetime;
		}
		public Timestamp getCreatetime() {
			return createtime;
		}
		public void setCreatetime(Timestamp createtime) {
			this.createtime = createtime;
		}
		
		public String getFtime() 
		{
			return new PrettyTime().format(updatetime);
			
		}

}
